#include"Report.h"

Report::Report()
{
	fout.open("fictioneditor_report.txt", std::ios_base::out);
}

std::string getTime()
{
    time_t timep;
    time(&timep);
    char tmp[64];
    strftime(tmp, sizeof(tmp), "%Y-%m-%d %H:%M:%S", localtime(&timep));
    return tmp;
}

void Report::writeReport(std::string s)
{
	fout << getTime() << " : " << s << std::endl;
}